package com.xxxx.yebserver.service;

import com.xxxx.yebserver.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.yebserver.pojo.MySecurityUser;
import com.xxxx.yebserver.vo.LoginVo;
import com.xxxx.yebserver.vo.RegistVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxq
 * @since 2021-06-15
 */
public interface AdminService extends IService<Admin> {

    MySecurityUser getSecurityUserByUsername(String username);

    Admin getAdminByUsername(String username);

    String getTokenByUsername(LoginVo vo);

    Boolean insertAdmin(RegistVo vo);

    Boolean hasAdminByUsername(String username);

    List<Admin> getAllAdmin();
}
